package dao;

import java.util.List;

import org.hibernate.Session;

import modele.Articlestock;
import modele.Taxe;


import persistence.BaseDAO;

public class TaxeDAO{
	
	public static void ajouterTaxe(Taxe articlestock, Session session) throws Exception{
		BaseDAO.getInstance().ajouter(articlestock,session);
	}

	public static void modifierTaxe(Taxe articlestock, Session session) {
		BaseDAO.getInstance().modifier(articlestock,session);
	}

	public static void SupprimerTaxe(Taxe articlestock, Session session) {
		BaseDAO.getInstance().delete(articlestock,session);
	}

	public static Taxe getTaxe(int id, Session session) {
		return (Taxe)BaseDAO.getInstance().getObject(Articlestock.class, id,session);
	}

	public static List getListTaxe(String requette, Session session) {
		return BaseDAO.getInstance().getListObject(requette,session);
	}

	public static List getListTaxe(String requete, Session session,
			int firstResult, int maxResults) {
		return BaseDAO.getInstance().getLimitedListObject(requete, firstResult, maxResults, session);
	}

}
